<dl class="main-menu">
    <dt><?= $this->translate('Каталог') ?></dt>

    <? foreach($this->main_categories['nodes'] as $item): ?>
        <dd> <a href="#"><?= $item['name'] ?></a> </dd>
            <? if(isset($item['nodes'])): ?>
                <? foreach($item['nodes'] as $subcat)
                    {print "<dd>  <a href='#'> - ".$subcat['name']."</a></dd>";   }
                ?>
            <? endif; ?>
    <? endforeach; ?>

</dl>
